package org.example.commonapi.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class VideoHistory {

    /**
     * 观看历史记录 id
     */
    Integer id;

    /**
     * 用户id
     */
    Long userId;

    /**
     * 视频id
     */
    Integer videoId;

    /**
     * 观看时间
     */
    Timestamp watchTime;

    public VideoHistory(Long userId, Integer videoId) {
        this.userId = userId;
        this.videoId = videoId;
    }

    public VideoHistory(Long userId, Integer videoId,Timestamp watchTime) {
        this.userId = userId;
        this.videoId = videoId;
        this.watchTime = watchTime;
    }
}
